# -*-coding: Utf-8 -*-
# @File : house_info .py
# author: Chimengmeng
# blog_url : https://www.cnblogs.com/dream-ze/
# Time：2023/10/9

from database import db
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()


class House_info(Base):
    __tablename__ = 'house_info'
    # 主键ID
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    house_name = db.Column(db.String(255), nullable=False)
    house_detail_url = db.Column(db.String(2555), nullable=False)
    house_detail = db.Column(db.String(255), nullable=False)
    house_area = db.Column(db.String(255), nullable=False)
    house_create = db.Column(db.String(255), nullable=False)
    house_cover = db.Column(db.String(2555), nullable=False)
    house_price_total = db.Column(db.String(255), nullable=False)
    house_pre_price = db.Column(db.String(255), nullable=False)
    house_location = db.Column(db.String(255), nullable=False)
    house_tag = db.Column(db.String(255), nullable=False)
